#ifndef sdlevent
#define sdlevent
#pragma warning( disable : 4290 )
class sdlevent_error : public std::logic_error 
{
public:
	sdlevent_error(const std::string &error) : logic_error(error) { }
};

class SDLEvent
{
private:
       SDL_Event event;
       std::string key_;
       bool left_click_;
       int mouse_x_;
       int mouse_y_;
public:
       void Poll() throw(sdlevent_error);
       std::string GetKey() throw(sdlevent_error);
       bool mouse_clicked() throw(sdlevent_error);
       int GetMouseX() throw(sdlevent_error);
       int GetMouseY() throw(sdlevent_error);
};
#endif